'use strict';


module.exports = app => {

  const { STRING, INTEGER, DATE } = app.Sequelize;

  const User = app.model.define('tests', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    title: STRING(50),
    content: STRING(100),
    created_at: DATE,
    updated_at: DATE,
  }, {

    createdAt: 'created_at',
    updatedAt: 'updated_at',
    // 不要忘记启用时间戳！
    timestamps: true,

  });

  return User;


};
